package demo.service;

import com.github.pagehelper.PageInfo;
import demo.entity.CompetitionProblem;
import demo.response.CompetitionProblemVO;
import demo.response.RestResponseVO;
import demo.response.ServerResponse;

import java.util.List;

public interface CompetitionProblemService {

    RestResponseVO getById(Integer id);

    RestResponseVO insert(CompetitionProblem competitionProblem);

    RestResponseVO delById(Integer id);

    RestResponseVO updateById(CompetitionProblem competitionProblem);

    RestResponseVO<List<CompetitionProblemVO>> listVOByCompetitionId(Integer competitionId);

    RestResponseVO<Integer> getScoreByCompIdProblemId(Integer compId,Integer problemId);



    Integer getScoreByCompIdProblemId2(Integer compId,Integer problemId);

    ServerResponse addAcCountByCompIdProblemId(Integer compId, Integer problemId);

    ServerResponse addSubmitCountByCompIdProblemId(Integer compId,Integer problemId);

    public List<CompetitionProblemVO> listVOByCompeId(Integer competitionId);

}
